<%--
$Id: user-list.jsp 19 2011-06-11 04:06:06Z feigme $
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<%@ taglib prefix="iary" uri="/WEB-INF/tld/pagination.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><fmt:message key="user.manager"/></title>
<link href="${ctx }/css/admin/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br/>
<form action="${ctx }/admin/user/search.do" method="post">
<table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center" border="0">
	<tr>
		<th colspan="4"><fmt:message key="common.query"/></th>
	</tr>
	<tr>
		<td class="usertablerow2"><fmt:message key="common.id"/></td>
		<td class="usertablerow2"><input type="text" name="id" value="<c:out value="${id }"/>"/></td>
		<td class="usertablerow2"><fmt:message key="user.email"/></td>
		<td class="usertablerow2"><input type="text" name="email" value="<c:out value="${email }"/>"/></td>
	</tr>
	<tr>
		<td class="usertablerow2"><fmt:message key="user.name"/></td>
		<td class="usertablerow2"><input type="text" name="userName" value="<c:out value="${userName }"/>"/></td>
		<td class="usertablerow2"></td>
		<td class="usertablerow2"></td>
	</tr>
	<tr>
		<td class="usertablerow2"><fmt:message key="user.register.date"/><fmt:message key="common.date.from"/></td>
		<td class="usertablerow2" colspan="3">
			<input type="text" name="fromDate" value="${fromDate }"/>
			<fmt:message key="common.date.to"/>
			<input type="text" name="toDate" value="${toDate }"/>
		</td>
	</tr>
	<tr>
		<td class="usertablerow2" colspan="4"><input type="submit" value="<fmt:message key="common.query"/>"/></td>
	</tr>
</table>
</form>
<br/>
<table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center" border="0">
	<tr>
		<th><fmt:message key="common.id"/></th>
		<th><fmt:message key="user.email"/></th>
		<th><fmt:message key="user.name"/></th>
		<th><fmt:message key="user.register.date"/></th>
		<th><fmt:message key="common.action"/></th>
	</tr>
	<c:if test="${page!=null}">
	<c:forEach items="${page.result}" var="user" varStatus="index">
	<tr>
		<td class="usertablerow2" align="center"><c:out value="${user.id}"/></td>
		<td class="usertablerow2"><c:out value="${user.userLoginInfo.email}"/></td>
		<td class="usertablerow2"><c:out value="${user.userLoginInfo.userName}"/></td>
		<td class="usertablerow2"><fmt:formatDate value="${user.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		<td class="usertablerow2"><a name="<c:out value="${user.id}"/>" href=""></a></td>
	</tr>
	</c:forEach>
	<c:if test="${fn:length(page.result)>0}">
	<tr>
		<td colspan="5">
			<iary:paginate url="${ctx}/admin/user/search.do" param="fromDate=${fromDate}&toDate=${toDate }"/>
		</td>
	</tr>
	</c:if>
	</c:if>
</table>

<br/>
</body>
</html>